package com.erp.gather.domain.bo;

import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 在线商品检测记录业务对象 erp_seller_store_product_diagnosis_record
 *
 * @author erp
 * @date 2023-12-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpSellerStoreProductDiagnosisRecordBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * ae产品id
     */
    @NotNull(message = "ae产品id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long productId;

    /**
     * 商品的操作状态
     */
    @NotBlank(message = "商品的操作状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String operateStatus;

    /**
     * 商品影响类型
     */
    @NotNull(message = "商品影响类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long productImpact;

    /**
     * 商品主图url
     */
    @NotBlank(message = "商品主图url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mainPicture;

    /**
     * 问题商品名称
     */
    @NotBlank(message = "问题商品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productTitle;

    /**
     * 商品问题描述
     */
    @NotBlank(message = "商品问题描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String problemDescription;

    /**
     * 商品问题类型
     */
    @NotBlank(message = "商品问题类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String problemType;

    /**
     * 商品优化建议
     */
    @NotBlank(message = "商品优化建议不能为空", groups = { AddGroup.class, EditGroup.class })
    private String optimizationSuggestion;

    /**
     * 店铺id
     */
    @NotNull(message = "店铺id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long storeId;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
